#include<bits/stdc++.h>
using namespace std;
int S[1000], top = -1;

int main() {
    for (int i = 0; i < 10; i++)S[++top] = i;
    while (top != -1) {
        cout << S[top] << endl;
        --top;
    }
    return 0;
}
